package com.xbongbong.paas.pojo.workflow.explains.dto;

import com.xbongbong.paas.toolbox.wrap.BaseDTO;
import com.xbongbong.paas.field.LinkInfoPojo;
import com.xbongbong.pro.enums.workflow.WorkflowValueTypeEnum;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * @author 吴峰
 * @date 2021/06/08 11:21
 */
@Getter
@Setter
@ToString
public class WorkflowFilterConditionFieldDTO extends BaseDTO {
    private static final long serialVersionUID = -220838214756118519L;

    /**
     * 条件值
     */
    @NotNull(message = "{dto.msg.workflowId.NotNull}")
    private Long workflowId;

    /**
     *
     */
    @NotNull(message = "{dto.msg.workflowNodeId.NotNull}")
    private Long workflowNodeId;
    @NotEmpty(message = "{dto.msg.WorkflowInsertNodeOperatorFieldDTO.nodeId.NotNull}")
    private String nodeId;
    @NotEmpty(message = "{dto.msg.WorkflowInsertNodeOperatorFieldDTO.prevId.NotNull}")
    private String prevId;

    /**
     * 表单id
     */
    @NotNull(message = "{dto.msg.explainRelationList.formId.NotNull}")
    private Long formId;

    /**
     * 标签字段类型
     */
    @NotNull(message = "{dto.msg.explainRelationList.fieldType.NotNull}")
    private Integer fieldType;

    /**
     * @see com.xbongbong.saas.enums.XbbRefTypeEnum
     */
    private Integer businessType;

    /**
     * @see com.xbongbong.pro.enums.SaasMarkEnum
     */
    private Integer saasMark;
    /**
     * @see com.xbongbong.saas.enums.XbbRefTypeEnum
     */
    private Integer fromBusinessType;
    /**
     * @see WorkflowValueTypeEnum
     */
    private Integer valueType;

    /**
     * 关联字段
     */
    private String linkAttr;

    private LinkInfoPojo linkInfo;

    private Integer linkedType;

}
